package com.client.service.impl;

import com.Emplyment.vo.StudyMaterialsVo;
import com.client.mapper.StudyMaterialsMapper;
import com.client.service.StudyMaterialsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class StudyMaterialsServiceImpl implements StudyMaterialsService {

    @Autowired
    private StudyMaterialsMapper studyMaterialsMapper;

    @Override
    public List<StudyMaterialsVo> getStudyMaterials() {
        List<StudyMaterialsVo> studyMaterials = studyMaterialsMapper.getStudyMaterials();
        return studyMaterials;
    }

    @Override
    public StudyMaterialsVo downloadStudyMaterials(Integer id) {
        StudyMaterialsVo studyMaterials = studyMaterialsMapper.downloadStudyMaterials(id);
        return studyMaterials;
    }
}
